package org.jeecg.glr.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.glr.entity.GlrLed;

import java.util.List;

/**
 * @Description: LED屏管理
 * @Author: jeecg-boot
 * @Date:   2020-02-20
 * @Version: V1.0
 */
public interface IGlrLedService extends IService<GlrLed> {

    /**
     * 根据ID获取LED对象
     * @param str
     * @return
     */
    List<GlrLed> getLedByIds(String str);

    /**
     * 开关LED屏
     * @param code
     * @param status
     */
    void ledOpenOrClose(String code, String status);

    /**
     * 更新上传进度
     * @param progress
     * @param commandId
     */
    void updateProgressByCommandId(String progress, String commandId);

    /**
     * 根据编号设置亮度
     * @param brightness
     * @param code
     */
    void updateBrightnessByCodes(Integer brightness, String code);

    void saveEntity(GlrLed glrLed);

    void updateEntityById(GlrLed glrLed);

    void removeEntityById(String id);

    void removeEntityByIds(List<String> asList);

    /**
     * 获取LED屏在线状态
     * @return
     */
    List<String> getLedStatus();


    GlrLed getLedByCode(String code);



}
